package com.share.homestay.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.homestay.entity.OrderLogs;
import com.share.homestay.entity.SysUser;
import com.share.homestay.entity.TjPermissions;
import com.share.homestay.pojo.JsonResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    List<SysUser> sysUserPageQuery(@Param("sysUser") SysUser sysUser, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    Long sysUserQueryCount(@Param("sysUser")SysUser sysUser);

    List<TjPermissions> selectPermsByUserId(Long userId);

    void addOrderLogs(@Param("orderLogs") OrderLogs orderLogs);

    List<OrderLogs> selectLogs(@Param("orderLogs") OrderLogs orderLogs, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    Long selectLogsCount(OrderLogs orderLogs);

    List<SysUser> findAllUser();
}
